﻿#region Namespace References

using System;

#endregion

namespace DynConDevCorp.OpenArch.SmartData.Interfaces.Attributes
{
    /// <summary>
    /// Attribute used to Dynamically associate a .NET Property with a SmartField instance.
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public sealed class PersistAttribute : Attribute
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="PersistAttribute"/> class.
        /// </summary>
        public PersistAttribute()
        {
        }

        #endregion

        #region Public Instance Properties

        public String DatabaseFieldName;

        public Boolean IsDatabaseField;

        public Boolean IsXmlPersistable;

        #endregion
    }
}